package com.sc.nft.controller.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class SellToShopRequest {


    @ApiModelProperty("出售数量")
    @NotNull(message = "请输入出售数量")
    @Range(min = 1L,max = 20L, message = "出售数量不正确,单次最多允许出售20单")
    private Integer sellCount;

    @ApiModelProperty("求购单Id")
    @NotNull(message = "求购单Id不能为空")
    private Long wantBuyOrderId;
    @ApiModelProperty("交易密码")
    @NotBlank(message = "交易密码不能为空")
    private String dealPassword;
}
